package com.xwj.dao;

import com.xwj.dto.CloudHouseInfoDto;
import com.xwj.dto.CreateCloudHouseInfoDto;
import com.xwj.entity.RaCloudHourse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by xuweijie on 2018/1/18.
 */
@Mapper
public interface RaCloudHourseDao {

    List<RaCloudHourse> findAllCloudHouse();

    List<RaCloudHourse> findALLByCondition(CloudHouseInfoDto cloudHouseInfoDto);

    int deleteOneById(int cloudId);

    int deletebatchById(List<Integer> list);

    int insertOne(RaCloudHourse raCloudHourse);

    String findOneByLocation(Map<String, Object> map);

    Integer findCloudIdByLocation(Map<String, Object> map);

    int updateOneByParam(CreateCloudHouseInfoDto cloudHouseInfoDto);
}
